//
// Created by Administrator on 2022/3/9.
//

#ifndef TRANSACTION_DSL_C_TS_ACTION_H
#define TRANSACTION_DSL_C_TS_ACTION_H

#include "ts_status.h"

typedef TsStatus (Exec)(void* userData);
typedef TsStatus (HandleEvent)(void* userData, void* msg);

typedef struct TsAction {
    Exec* exec;
    HandleEvent* handler;
} TsAction;

#define TsEmptyEventHandler 0
#define TsEmptyExec 0

#endif //TRANSACTION_DSL_C_TS_ACTION_H
